<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据代理</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h2>学校名字:{{name}}</h2>
        <h2>学校地址: {{address}}</h2>
        <h2>学科: {{subject}}</h2>
    </div>

    <script>
        const vm = new Vue({
            el: '#root',
            data: {
                name: '广东外语外贸大学',
                address: '广州市番禺区小谷围广州大学城 ',
                subject: '计算机科学与技术'
            }
        })

        console.log(vm);

        //在vm的上有name,address,subject vm._data上也有name,address,subject
        //底层用了  Object.defineProperty()
       
    </script>
</body>
</html>